//
//  CantonAndVocViewController.h
//  WRY
//
//  Created by zhong sckj on 10-10-19.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonActivity_iPad.h"
#import "AFOpenFlowView.h"
#import "SCCharts.h"
#import <MapKit/MapKit.h>
#import "MapAnnotation.h"


@protocol EnterlistVCDelegate

- (void)mapbuttonPressedInEnterlist:(NSDictionary *)proporties;
- (void)mapbuttonPressedNavi:(NSDictionary *)proporties;
@end

@class EnterpriseListView;
@class RootVC_iPad;
@interface EnterpriseListVC_iPad: CommonActivity_iPad<AFOpenFlowViewDataSource,AFOpenFlowViewDelegate,SC_PieViewDelegate
,MKMapViewDelegate> {
	
	RootVC_iPad *rootVc;
	EnterpriseListView *enterlistView;
	//行政区数据
	NSMutableArray *listData;
	//行业数据
	NSMutableArray *listVocatondata;
	//类别数据
	NSMutableArray *listCategoryData;
	
	NSMutableArray *coverImagesArray;
	
	AFOpenFlowView *afopenflowview;
	
	NSInteger wrydetailTypeCode;//判断是行业类别，还是行政区 1000行政区 2000行业类别 3000 国控类别
	NSString *selectName;
	
	SC_PieChartVC *pieChartController;
	
	
	UIImage *image1;
	UIImage *image2;
	UIImage *image3;
	UIImage *image4;
	
	
	UISegmentedControl *segmentController;
	MKMapView *localmapView;
	UIView *mapModeView;
	
	NSMutableDictionary *enterlistDiect;
	NSArray *keyArray;
	
	
	BOOL isMapLoad;
	double distance;
	id<EnterlistVCDelegate> delegate;
	UIButton *btnStandard;
	UIButton *btnSatellite;
	
}
@property(nonatomic,retain)UIImage *image1; 
@property(nonatomic,retain)UIImage *image2; 
@property(nonatomic,retain)UIImage *image3; 
@property(nonatomic,retain)UIImage *image4; 

@property(nonatomic,retain)RootVC_iPad *rootVc;
@property(nonatomic,retain)NSMutableArray *listData;
@property(nonatomic,retain)NSMutableArray *listVocatondata;
@property(nonatomic,retain)NSMutableArray *listCategoryData;
@property(nonatomic,retain)NSMutableArray *coverImagesArray;
@property(nonatomic,retain)EnterpriseListView *enterlistView;
@property(nonatomic,retain)AFOpenFlowView *afopenflowview;
@property(nonatomic)NSInteger wrydetailTypeCode;
@property(nonatomic,retain)NSString *selectName;

@property(nonatomic,retain)IBOutlet UISegmentedControl *segmentController;
@property(nonatomic,retain)MKMapView *localmapView;
@property(nonatomic,retain)NSMutableDictionary *enterlistDiect;
@property(nonatomic,retain)NSArray *keyArray;
@property(nonatomic,retain)UIView *mapModeView;
@property(nonatomic,retain)UIButton *btnStandard;
@property(nonatomic,retain)UIButton *btnSatellite;
@property(nonatomic)BOOL isMapLoad;
@property(nonatomic,retain)id<EnterlistVCDelegate> delegate;
//刷新enterpriselist
-(void)linkData;
-(void)reloadPageEntList:(NSInteger)fromType enterType:(NSString *)enterpriseType;
-(UIView *)drawSector:(NSInteger)detailtypeCode;
-(UIView *)drawHistogramView;
- (UIImage*) imageWithUIView:(UIView*) view;
-(void)coverflowAction;
- (NSMutableString *)setSummaryText;
-(void)drawfourImage:(NSInteger)imageindex;
-(UIView *)drawVocationView;
-(UIView *)drawLevelView;
- (void)setMapPorperites;
@end
